Do not bypass down/up reconfig codepath if the radio is being disabled,
otherwise it will be left running.
Signed-off-by: Prasun Maiti <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]> [fix commit description]
return;
wdev->config_update = false;
- if (s == IFC_RELOAD && wdev->reconf && wdev->state == IFS_UP) {
+ if (!wdev->disabled && s == IFC_RELOAD && wdev->reconf && wdev->state == IFS_UP) {
wireless_device_reconf(wdev);
return;
}